package com.dhecp.project.business.mapper;

import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.business.domain.ProductCarefullySetting;

/**
 * DAO
 * @author Jason
 */
public interface ProductCarefullySettingMapper extends GenericDao<ProductCarefullySetting, String>  {

	/**
     * 查询实体
     * @author Jason
	 */
	List<ProductCarefullySetting> find(Map<String, Object> params);

	/**
     * 查询实体
     * @author Jason
	 */
	List<ProductCarefullySetting> listByPcode(@Param("pcode") String pcode);

	/**
     * 查询单个实体
     * @author Jason
	 */
	ProductCarefullySetting queryFirstByGuid(@Param("guid") String guid);

	/**
     * 查询单个实体
     * @author Jason
	 */
	ProductCarefullySetting findByCodeAndPcode(@Param("code") String code, @Param("pcode") String pcode, @Param("warehouse") String warehouse);

	/**
     * 查询单个实体
     * @author Jason
	 */
	ProductCarefullySetting findById(@Param("id") Long id);
	
	/**
	 * 新增实体
     * @author Jason
	 */
	int insert(ProductCarefullySetting entity);
	
	/**
	 * 通过guid修改实体
     * @author Jason
	 */
	int updateByGuid(ProductCarefullySetting entity);
	
	/**
	 * 通过guid删除
     * @author Jason
	 */
	void deleteByGuid(String guid);
	
	/**
	 * 通过上级编码删除
     * @author Jason
	 */
	void deleteBatchByPcode(String pcode);

}
